#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	int a = 0;
	int b = 0;
	int i = 0;
	while (~scanf("%d", &a))
	{
		while (a)
		{
			int n = a % 10;
			if (0 == n % 2)
			{
				n = 0;
			}
			else
			{
				n = 1;
			}
			b += n*pow(10, i++);
			a /= 10;
		}
		printf("%d", b);
	}
	return 0;
}